﻿using Web.App.Infrastructure.Context.Contracts;
using System.Web;

namespace Web.App.Infrastructure.Context.Implementation
{
    class HttpApplicationState : ICustomApplicationState
    {
        #region ICustomApplicationState Members

        public object this[string name]
        {
            get
            {
                return HttpContext.Current.Application[name];
            }
            set
            {
                HttpContext.Current.Application[name] = value;
            }
        }

        public object this[int index]
        {
            get
            {
                return HttpContext.Current.Application[index];
            }

        }

        #endregion
    }
}